package zlatan_demo06_tuple

object ClassDemo02 {
  def main(args: Array[String]): Unit = {

    val tuple1=("zhangsan","male")

    println(s"姓名: ${tuple1._1},性别: ${tuple1._2}")

    //迭代器
    val it= tuple1.productIterator
    for (i<-it) println(i)
  }

}
